Skip to content

refactor!: Base combo box styles #8932

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 21 commits into from
Apr 23, 2025
Merged

refactor!: Base combo box styles #8932

merged 21 commits into from
Apr 23, 2025

Conversation

anezthes
Copy link
Contributor

@anezthes anezthes commented Apr 11, 2025

New and changed base style properties

Property Description
--_vaadin-icon-checkmark Data URL for an SVG icon of a checkmark. Used to indicate the selected item.
--_vaadin-icon-chevron-down Data URL for an SVG icon of a downward-pointing chevron. Used for combo box and select dropdown indicators.

New Combo Box base style

localhost_8000_dev_combo-box html

localhost_8000_dev_combo-box html (1)

Screenshot 2025-04-15 at 10 17 30

Supported custom properties

Property Description
--vaadin-combo-box-spinner-color The color of the loading spinner.
--vaadin-combo-box-overlay-width The width of the item overlay.
--vaadin-item-border-radius Item border radius.
--vaadin-item-checkmark-color The color of the checkmark icon for a selected item.
--vaadin-item-gap Space between the checkmark and content.
--vaadin-item-height Item height.
--vaadin-item-overlay-padding Item container padding.
--vaadin-item-padding Item padding.

@web-padawan web-padawan changed the base branch from main to base-styles April 11, 2025 13:03
@anezthes anezthes requested a review from jouni April 14, 2025 09:24
@anezthes anezthes changed the title Base combo box refactor!: Base combo box Apr 14, 2025
@anezthes anezthes changed the title refactor!: Base combo box refactor!: Base combo box styles Apr 15, 2025
Copy link
Member

@web-padawan web-padawan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebased the PR on top of the updated base-styles branch.

Copy link
Member

@web-padawan web-padawan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebased again. Some tests are failing, please do not merge until I fix those:

packages/combo-box/test/keyboard-lit.generated.test.js:

 ❌ keyboard > scrolling items > should scroll up after reaching the first visible item
      AssertionError: expected 1 to deeply equal 2
      + expected - actual

      -1
      +2

      at n.<anonymous> (packages/combo-box/test/keyboard-lit.generated.test.js:484:54)

 ❌ keyboard > scrolling items > should scroll to first visible when navigating down above viewport
      AssertionError: expected 5 to deeply equal 6
      + expected - actual

      -5
      +6

      at n.<anonymous> (packages/combo-box/test/keyboard-lit.generated.test.js:497:54)

 ❌ keyboard > scrolling items > should scroll to first visible when navigating up above viewport
      AssertionError: expected 3 to deeply equal 4
      + expected - actual

      -3
      +4

      at n.<anonymous> (packages/combo-box/test/keyboard-lit.generated.test.js:506:54)

Copy link
Member

@web-padawan web-padawan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Combo-box tests are passing now, other test failures are unrelated to this PR.

@jouni
Copy link
Member

jouni commented Apr 23, 2025

I fixed the CSS lint errors directly in the base-styles branch.

@jouni
Copy link
Member

jouni commented Apr 23, 2025

@web-padawan, I’m not sure about the other test failures, if those are the ones you deemed unrelated to this PR.

@web-padawan
Copy link
Member

There are some multi-select-combo-box chip tests failing, I'll look into fixing those separately. Let's merge this PR.

@web-padawan web-padawan merged commit 81aad44 into base-styles Apr 23, 2025
3 of 8 checks passed
@web-padawan web-padawan deleted the base-combo-box branch April 23, 2025 12:08
web-padawan pushed a commit that referenced this pull request Apr 23, 2025
Co-authored-by: Jouni Koivuviita <jouni@vaadin.com>
web-padawan pushed a commit that referenced this pull request Apr 24, 2025
Co-authored-by: Jouni Koivuviita <jouni@vaadin.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants